{% extends "../main.html" %}

{% block title %}{{ _("Reset Game") }}{% end %}

{% block content %}
<div class="container">
    <h1>
        <i class="fa fa-undo"></i>
        {{ _("Reset Game") }}
    </h1>
    <br />
    {% if errors is not None and len(errors) != 0 %}
        {% for error in errors %}
        <div class="alert alert-error">
            <a class="close" data-dismiss="alert" href="#">&times;</a>
            <h4 class="alert-heading">{{ _("ERROR") }}</h4>
            {{ error }}
        </div>
        {% end %}
    {% end %}
    {% if success is not None %}
    <div class="alert alert-success">
        <a class="close" data-dismiss="alert" href="#">&times;</a>
        <h4 class="alert-heading">{{ _("SUCCESS") }}</h4>
        {{ success }}
    </div>
    {% end %}
    <div class="well">
        <form class="form-horizontal" action="/admin/reset" method="post">
            {% raw xsrf_form_html() %}
            <div class="control-group">
                <div class="controls">
                    <h3>{{ _("Reset Actions") }}</h3>
                    <ul>
                        <li>
                            {{ _("Clear all team / player flag captures") }}
                        </li>
                        <li>
                            {{ _("Clear all team pastebin and file shares") }}
                        </li>
                        <li>
                            {{ _("Clear all notifications and game history") }}
                        </li>
                        <li>
                            {{ _("Clear market items or source code purchases") }}
                        </li>
                        <li>
                            {{ _("Reset player / team starting points / money") }}
                        </li>
                    </ul>
                </div>
            </div>
            <div class="control-group">
                <div class="controls">
                    <button class="btn btn-primary" type="submit">{{ _("Reset Game") }}</button>
                </div>
            </div>
        </form>
    </div>
</div>
{% end %}
